package com.smcaiot.filesync.starter.entity;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: cz
 * @Date: 2022/4/29
 * @Description:
 */
@Data
@Accessors(chain = true)
public class ReceiveParams<T> extends RemoteParams implements Serializable {

    @NotNull(message = "文件信息不能为空")
    private T entity;

    @NotBlank(message = "文件base64不能为空")
    private String base64;

    private String pathFieldName;

    @NotBlank(message = "文件名不能为空")
    private String fileName;

}
